kexec/uefi: copy secure_boot flag in boot params across kexec reboot
authorDave Young <dyoung@redhat.com>
Tue, 6 Oct 2015 12:31:31 +0000 (13:31 +0100)
committerYves-Alexis Perez <corsac@debian.org>
Fri, 9 Feb 2018 12:58:52 +0000 (12:58 +0000)
commit8d87fe7e8fde409efe42eaa97cfd7622b5713ae6
tree423d6179ff7c14c48cb45a35db26eb580a39c2f1
parentd41179f0b599a10bfddb5b8bb6a71591efaa6f8c
kexec/uefi: copy secure_boot flag in boot params across kexec reboot

Kexec reboot in case secure boot being enabled does not keep the secure
boot mode in new kernel, so later one can load unsigned kernel via legacy
kexec_load.  In this state, the system is missing the protections provided
by secure boot. Adding a patch to fix this by retain the secure_boot flag
in original kernel.

secure_boot flag in boot_params is set in EFI stub, but kexec bypasses the
stub. Fixing this issue by copying secure_boot flag across kexec reboot.

Signed-off-by: Dave Young <dyoung@redhat.com>
Gbp-Pq: Topic features/all/securelevel
Gbp-Pq: Name kexec-uefi-copy-secure_boot-flag-in-boot-params-acro.patch
arch/x86/kernel/kexec-bzimage64.c